﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheSimGer
{
    public static class TheListHelper 
    {
        public static T GetRandom<T>(this List<T> Data) 
        {
            return Data[TheRandom.Range(0, (Data.Count - 1))];
        }
    }

    public class TheGambling
    {
        public static List<(Color, string)> RandomGambling = new List<(Color, string)>
        {
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"好运"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"坏事"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"一般事件"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"一般剧情"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"极坏事件"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"属性提升"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"大量属性提升"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"疲劳"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"良好休息"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"红包"),

            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"少量金钱"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"少量金钱"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"少量金钱"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"少量金钱"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"少量金钱"),

            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"丢失少量金钱"),

            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"什么都没发生"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"什么都没发生"),
            (Color.FromArgb(TheRandom.Range(0,255),TheRandom.Range(0,255),TheRandom.Range(0,255)),"什么都没发生"),
        };
    }
}
